package com.neko.seed.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 用户类型枚举
 */

@JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
public enum UserType {
    ADMIN(0, "超级管理员"),
    USER(1, "普通用户");
    @EnumValue
    private Integer type;
    private String value;

    UserType(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
